{extend name="public/layout"}
{block name="title"}我要捐赠{/block}
{block name="head"}
<style>
    html, body {
        background-color: #f6f6f6;
    }

    textarea {
        width: 100%;
    }

    .panel {
        border-radius: 5px;

    }

    .btn-block-area {
        padding-top: 2.3rem;
    }
</style>
{/block}
{block name="content"}

<div class="plr pt pb" id="form1">
    <div class="panel bg-white">
        <textarea name="content" required id="content" placeholder="写下你的环保留言，把环保意识带给更多的人！" rows="10"></textarea>
    </div>

</div>

<div class="btn-block-area panel">
    <a class="btn-primary btn-block btn-rounded" href="javascript:void(0)" id="submit">
        我要留言
    </a>
</div>
{:_js('js/phone.js')}
<script>
    $('#submit').on('click', function () {
        c.form('form1', "{:U('comment')}").validate().submit().success(function () {
            ui.tip.show('留言成功');
            setTimeout(function () {
                location.href = "{:U('donation/msg')}";
            },1500);
        });
    });
</script>

{/block}


